<span class="p-r username" nz-dropdown [nzDropdownMenu]="menu" nzTrigger="click">
    <i class="iconfont icon-user-line"></i>
    {{user?.name}}
    <i class="iconfont icon-arrow-down-s-fill"></i>
</span>
<nz-dropdown-menu #menu="nzDropdownMenu">
    <ul nz-menu nzSelectable>
        <li nz-menu-item (click)="logOutEvent()">
            <i nz-icon nzType="logout" nzTheme="outline"></i>
            退出登录
        </li>
    </ul>
</nz-dropdown-menu>